﻿using RestSharp;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RATSharp.Property;
using RATSharp.Rest;
using RATSharp.Model;

namespace RATSharp
{
    delegate void handlerAsync<T>(T obj);

    class EntryPoint
    {

        static void Main(string[] args)
        {
            //PropertyLoader res = new PropertyLoader();
            //Properties properties = PropertyLoader.resolve();
            //if (properties == null)
            //{
            //    Console.WriteLine("Parameters cannot be parsed. See logs for more info");
            //    return;
            //}
            ////TODO: povolit uzivateli zmenu nastaveni
            //RestService restService = new RestService(properties);
            //restService.init();

            Console.WriteLine("-- RATSharp Client --");
            //Console.WriteLine("Logging in...");

            //User user;

            //if (!MenuUtilities.WaitForCommTask(restService.getUserAsync(properties.username), out user))
            //{
            //    Console.WriteLine("Login failed. Is server alive?");
            //    //return;
            //}
            //else
            //{
            //    Console.WriteLine("You are logged as " + user.Name);
            //}


            Menu menu = new Menu();
            menu.start();

        }

    }
}
